JOINT BASE ANDREWS, Md. (AP) — Blending solemn tradition with joyous reunion, the top commander of U.S. forces in Iraq returned home to U.S. soil Tuesday, greeted by his wife and his president in an understated ceremony to mark the end of a nine-year conflict that has defined a generation.

President Obama met Gen. Lloyd Austin and his top command staff with a smart salute at this military post in suburban Washington. Gen. Austin made his homecoming with his staff bearing the U.S. Forces-Iraq flag, the symbolic conclusion to the war.

Mr. Obama was accompanied by Vice President Joseph R. Biden Jr. Though neither offered formal remarks, both greeted the troops and their families.

Those families, however, had to await the ritual return of the flag before embracing their loved ones. Under Army custom, the flag will be retired and either stored or displayed.

“Today we bring home the colors to United States soil; at the same time we embrace many of our own back into the fold just in time for the holidays,” Gen. Martin Dempsey, chairman of the Joint Chiefs of Staff, told the returning men and women. “Welcome home.”

The last U.S. troops withdrew from Iraq on Sunday. In a visible reminder of the conflict, Gen. Dempsey, Gen. Austin and the troops who accompanied him wore their combat uniforms.

With Mr. Obama, an early opponent of the war, sitting nearby, Gen. Austin praised the war’s outcome.

“What our troops achieved in Iraq over the course of nearly nine years is truly remarkable,” he said. “Together with our coalition partners and core of dedicated civilians, they removed a brutal dictator and gave the Iraqi people their freedom.”

Gen. Dempsey and Gen. Austin saluted military families, and Gen. Dempsey also singled out the USO and its history of entertaining troops during wars. Among those in the audience were former NBA star Robert Horry, a participant in a current USO holiday tour.

As the ceremony concluded, Mr. Obama waded into a teary and jubilant scene of reunion as troops and their families hugged and posed for photographs.