Hijos de J. Barreras and Navantia had bid for the contracts as part of a consortium that includes PMI Norteamerica, a unit of Pemex subsidiary PMI Comercio Internacional.
The bidding was for 10-year contracts covering construction of the flotels and support services, such as food and housing, for the two ships.
The consortium that won the auction, which was organized by Pemex Exploracion y Produccion, or PEP, was led by PMI Norteamerica and included partners Kol-Tov and PMI Trading.
The two shipyards from the northwestern Spanish region of Galicia - Barreras, which is controlled by Pemex, and Navantia - will construct the vessels.
“After the presentation of the technical and financial proposals, the offer presented by PMI Norteamerica ended up the winner of both parts with the most competitive price of the seven offers made by the qualifying firms,” Pemex said in a statement.
The winning bid was $407 million for the two contracts, which cover construction of the two flotels and support services.
Initial estimates had put the cost of each ship at about $190 million.
The announcement of the winning bidder was orginally expected on Sept. 18, but it was postponed several times, with the most recent delay coming on Dec. 30.
Pemex officially took control of the Hijos de J. Barreras shipyard in Vigo, a city in Galicia, on Dec. 16.
Pemex and Barreras closed their investment deal on Nov. 26, with the Mexican oil giant purchasing a 51 percent stake in the Spanish shipyard for 5.1 million euros ($7.01 million).
The contracts call for the provision of services to begin on July 13, 2016, Pemex said.
“The process, totally transparent and subject to auditing, was conducted in strict accordance with the applicable rules, and was overseen by a third party,” the oil company said.
The two floating hotels will be used to house workers from offshore rigs.
About two-thirds of the 2.5 million barrels per day (bpd) of crude, on average, produced by Pemex comes from offshore oil fields.