Beckham visited the Shree Padma Higher Secondary School, where classes are being held in temporary sheds after the April 25 earthquake that killed nearly 9,000 people. He spent an hour talking to students in classrooms made out of a tin roof and bamboo walls.
The former England captain later played soccer with the children at an open courtyard surrounded by old Hindu temples.
“This is the best day of my life. I am so, so happy,” said Seline Homija, an eighth-grade student who played with Beckham on the brick paved courtyard.
Hundreds of fans gathered to watch, and police used batons to control the crowd.
Beckham, who also recently visited children at a hospital in Papua New Guinea, is in Nepal for a day filming a documentary.