When Spaniards began using the port of Callao in 1535 to load their ships with treasures to return to Spain, they attracted buccaneers. The pirating began with Sir Frances Drake in 1578. The Viceroy of Peru, José Antonio Manso de Velasco, commissioned Louis Godin to build a fortress after the previous defense was destroyed in the 1746 earthquake. The Real Felipe, named after King Phillip V of Spain, was finished in 1774. The pentagon-shaped citadel has five bastions with cannons pointing out from the battlements.