BEIRUT, Lebanon — Saudi Arabia has detained at least five people connected to the campaign to end the kingdom’s longtime ban on women driving, despite the fact that the government has promised to lift the ban next month, associates of the detainees said on Friday.

The Saudi government has billed the lifting of the driving ban as part of a reform push spearheaded by Crown Prince Mohammed bin Salman. The changes have also included curtailing the powers of the religious authorities and expanding the entertainment options available in the conservative kingdom.

But those efforts have coincided with waves of arrests that have scooped up clerics, businessmen, members of the royal family and activists who have a history of challenging the government’s positions. Many of them have not been officially charged with crimes despite having been held for months.

In a message on Twitter early Saturday, the Saudi Interior Ministry confirmed that seven people had been arrested after being accused of communicating with “foreign entities,” infiltrating the government and providing financial support to “hostile elements abroad to undermine the security and stability of the kingdom.”