Mexico's gross domestic product (GDP) grew at an annual rate of 4 percent in the second quarter, the Mexican government said in a preliminary estimate.

Inflation came in at an annualized rate of 4.34 percent in June, representing an increase of 0.61 percent with respect to the 3.73 percent rate registered at the end of the previous quarter, the Finance and Public Credit Secretariat said in a report.

"During the second quarter of 2012, the Mexican economy continued in the expansion process, according to the results of the principal macroeconomic indicators. The growth rate moderated slightly, but it remained positive and elevated," the secretariat said.

The figures reported by the Finance and Public Credit Secretariat are preliminary, with the final numbers expected to be released by the National Institute of Statistics and Geography, or INEGI, in the next few weeks.

Government revenues totaled 1.7 trillion pesos (about $128 billion) in the first half of the year, rising 9 percent in real terms, compared to the January-June 2011 period, the secretariat said.

The federal deficit hit 142.62 billion pesos ($10.73 billion) in the first six months of the year, which was in line with the budget numbers approved for the year, the secretariat said.

Mexico's net federal public debt was equivalent to 33.6 percent of GDP as of the end of the second quarter, up 1.9 percentage points from the total at the end of 2011, the secretariat said. EFE