A government watchdog group filed a formal complaint with New York City officials on Monday against Mayor Bill de Blasio and the outside political groups tied to him, requesting an investigation into whether their fund-raising and spending violated the law.

The move is the latest salvo in two years of public complaints by good government advocates over the groups, run by close allies of the mayor, that grew out of Mr. de Blasio’s 2013 campaign. They have since advocated for his policies, beginning with the push for universal prekindergarten and, now, the battle over rezoning and affordable housing.

The most prominent of the groups is Campaign for One New York, which has hired the mayor’s top outside political consultants and, as a nonprofit, has raised money for his political agenda outside the city’s limits on campaign donations.

In a five-page letter sent on Monday, the government watchdog group, Common Cause New York, requested that the city’s Campaign Finance Board and its Conflicts of Interest Board look into the mayor’s actions and those of the groups, which, Common Cause asserts, run afoul of broadly worded sections of the city charter and of campaign finance law, “as well as the spirit” of those regulations.