KARACHI, Pakistan — Every Pakistani boy, it seems, has dreamed of becoming a star in one of the country’s national sports: cricket, field hockey or squash. But access to sports, like so many other things here, has historically rested on class, gender and privilege; the poorest are denied the same opportunities as the rich, and girls have been left out all but completely.

The Karachi United Football Foundation, however, believes that football — the kind Americans call soccer — can bring ethnic, sectarian and gender diversity to Pakistani sports. By promoting the game at the grass roots, the foundation is investing in football not just as a sport, but as a democratizer.

Sports have always mirrored politics in South Asia. The British introduced football in the 19th century; it thrived in the Bengal region, where enthusiastic local players competed barefoot against British military teams. Elsewhere on the Subcontinent, however, cricket eclipsed football; Indian cricketers, whose political ambitions revolved around independence, were more eager to beat the British at their own game.

Pakistan’s interest in football began at the time of the country’s formation: The Pakistan Football Federation was created in 1947, and Pakistan joined the Fédération Internationale de Football Association in 1948. The game became extremely popular in the provinces of Balochistan and Khyber Pakhtunkhwa, in the western part of Pakistan, but drew most of its players from the former Bengali state, from which East Pakistan had been created.