With their heads bowed and wearing orange robes, the members of the boys' soccer team rescued from almost three weeks trapped in a cave in northern Thailand have completed their time as novice Buddhist monks.

Key points: The ordination is dedicated to the former navy SEAL who died during the rescue mission

The ordination is dedicated to the former navy SEAL who died during the rescue mission The Government has discouraged interviews with the boys, citing child protection laws

The Government has discouraged interviews with the boys, citing child protection laws Some critics claim the Government wants to control the boys' narrative for political purposes

About 300 people gathered for the ceremony on a rainy morning that saw the boys leave temple life to return to their families.

Those present gave alms — flowers, food, money — as a gesture of their religious devotion.

The July 25 ordination of 11 boys of the Wild Boars soccer team along with the 25-year-old coach was especially dedicated to a former Thai navy SEAL, Saman Gunan, who died while diving during a volunteer mission to supply the cave with oxygen tanks essential to a successful rescue.

A 12th boy did not go through the religious ritual because he isn't Buddhist.

At the temple near Thailand's mountainous border with Myanmar, the boys and their coach sat barefoot in a large pavilion in their orange robes. The adults sitting behind them wore white.

With heads bowed, they prayed, fidgeted and occasionally yawned as monks chanted sacred texts.

They then placed new monks' robes on a table in front of a large photo of Saman. Afterwards, they changed into white shirts and blue pants.

The boys completed time as novice Buddhist monks to give thanks for their survival. ( AP: Sakchai Lalit )

Coach Ekapol "Ake" Chanthawong remained in his Buddhist robe, as he has committed to an extended period in the monkhood.

Although they will be giving up their Buddhist robes, it is likely that the boys will retain some of the solitude of temple life, as the Government has for the time being discouraged any interviews with them, wielding the threat of legal action under child protection laws.

While there has been some criticism that the Government wants to control the narrative of the boys' ordeal to exploit for political purposes — Thailand's military rulers are seeking to booster their popularity ahead of a possible election next year — psychologists agree that the boys may be vulnerable to post-traumatic stress disorder.

Both their physical and mental health has been judged to be fine.

The boys' former soccer coach has committed to an extended period of monkhood. ( AP: Sakchai Lalit )

The boys and their coach entered the cave on June 23 for a quick, casual trek, but flooding quickly blocked the exit and they had to retreat deeper inside the cave.

Heavy rains raised water levels further and thwarted the initial searches before two British divers on July 2 found the group huddled on a dry patch of ground, safe but hungry. They were extricated from the cave in an intricate operation involving an international team of divers over three days beginning July 8.

The epic event is being commemorated with construction of a museum, expected to open within six months, along with a statue of Saman.

Saman, who is considered a national hero, was cremated in a royally sponsored funeral and had his ashes scattered in the Mekong River.

Psychologists agree that the boys may be vulnerable to post-traumatic stress disorder. ( AP: Sakchai Lalit )

AP