Trsat castle lies on top of a hill in Trsat, a district of the city of Rijeka, Croatia.