Yahoo Inc. has been ordered to pay $2.7 billion as part of a lawsuit filed in Mexico by two companies claiming breach of contract.

The Sunnyvale, Calif.-based company said Friday that a court in Mexico City handed down the decision against Yahoo Inc. and Yahoo de Mexico, S.A. de C.V. in a lawsuit brought by Worldwide Directories S.A. de C.V. and Ideas Interactivas S.A. de C.V.