Ljubljana is the capital city of Slovenia, and its medieval castle is located at the summit of the hill that dominates the city centre. The castle's Outlook Tower dates back to 1848, and was inhabited by a guard whose duty it was to fire cannons warning the city in case of fire or announcing important visitors or events.