Gabriel Pereira de Castro wrote some books about law. He is however known chiefly for his epic poem "Ulisseia ou Lisboa Edificada" ("Ulisseia or Lisbon Built"). It was published in 1636. It consists of ten books. It is written in ottava rima. Its form is typical for Renaissance epic poems. The poem imitates "The Lusiads" by Luís Vaz de Camões. It is about the founding of the town of Lisbon by Ulysses (Odysseus).