TEGUCIGALPA, Honduras — Facing a polarized nation in the aftermath of a disputed election, Juan Orlando Hernández was sworn in on Saturday for a second term as president of Honduras.

The pomp-filled ceremony at the national stadium in the capital, Tegucigalpa, was marred by large clashes outside between security forces and protesters.

Mr. Hernández, 49, begins his new term confronted by questions over his government’s violent crackdown on Hondurans who have protested the results of the November vote, and its commitment to fighting corruption.

As the early-morning ceremony unfolded at the stadium, security forces fired tear gas on protesters marching toward the event. Among the demonstrators, who numbered in the thousands, was the opposition candidate, Salvador Nasralla, who has refused to accept the election results.