QUICK ANSWER
"Templo" is a form of "templo", a noun which is often translated as "temple". "Pirámide" is a noun which is often translated as "pyramid". Learn more about the difference between "pirámide" and "templo" below.
la pirámide(
pee
-
rah
-
mee
-
deh
)A feminine noun is almost always used with feminine articles and adjectives (e.g., la mujer bonita, la luna llena).
a. pyramid
Cuando fui a Teotihuacan, subí la pirámide del Sol.When I went to Teotihuacan I climbed up the Pyramid of the Sun.
2. (geometry)
el templo(
tehm
-
ploh
)A masculine noun is used with masculine articles and adjectives (e.g., el hombre guapo, el sol amarillo).
a. temple
Las Iglesias, las sinagogas y las mezquitas son templos de culto religioso.Churches, synagogues, and mosques are temples for religious worship.
Los mirmidones saquearon y quemaron el templo de Apolo.The Myrmidons sacked and burned the temple of Apollo.