Xylokastro (Greek: Ξυλόκαστρο) is a small seaside town, formerly a municipality in Corinthia, Peloponnese, Greece.
Geographical features include a 2km long beach and semi-arid forest in varied terrain, scattered with early churches and evidence of early settlements and religious sites. It narrowly separates the upper and lower coastal roads and forms a medium-sized tourist town on the Gulf of Corinth.
Xylokastro is located on the coast of the Gulf of Corinth, 30 km northwest of Corinth, near the mouth of the Trikalitikos River.
The city got its name from a wooden castle (Greek: Ξύλινο καστρο), probably built in the 13th century. It was also known as Solo Castro. The village of Stylia was known as Viladuza by the Venetians in the 18th century.