In 1260 , Alfonso X of Castile took the city from the Moors . He renamed it Santa MarÃ a del Puerto . In 1260 , Alfonso X of Castile conquered the city from the Moors and renamed it Santa MarÃ a del Puerto .