Under Spanish rule Trujillo became the capital of Honduras , but because of its vulerability the capital was changed to the inland town of Comayagua .
Under Spanish rule Trujillo became the capital of Honduras . 
 But because of its vulerability to pirate attacks the capital was changed to the inland town of Comayagua .