Relational algebra is the basis for query languages like SQL and is useful for representing query execution plans. It defines basic operations like selection, projection, join, and set operations that allow querying and manipulating data in relational databases. Relational algebra is important as a theoretical foundation, for specifying query optimization plans, and because understanding it helps write correct SQL queries.