It can refer to:
* The building itself: "Fui al teatro a ver una obra." (I went to the theater to see a play.)
* The art form of theater: "Me gusta el teatro clásico." (I like classical theater.)
* The stage: "Los actores entraron al teatro." (The actors entered the stage.)
It's important to consider the context to understand the specific meaning of "el teatro".