A conversation on Twitter has led to an unlikely collaboration between the Republican senator Ted Cruz and the Democratic representative Alexandria Ocasio-Cortez to pass legislation targeting lobbying by former members of Congress.

The two lawmakers tweeted support of placing restrictions or a potential lifetime ban on former Congress members becoming lobbyists. The conversation began when Ocasio-Cortez tweeted a study from Public Citizen that found 60% of former Congress members had taken jobs influencing federal policy.

“If you are a member of Congress and leave, you shouldn’t be allowed to turn right around and leverage your service for a lobbyist check,” she wrote.

Cruz retweeted Ocasio-Cortez, suggesting bipartisan legislation to fight the Washington political “swamp”. The Republican House representative Chip Roy tweeted that he would help Ocasio-Cortez spearhead the effort. She agreed to create a bipartisan team in the House while Cruz forms one in the Senate to write a ban.

Here’s something I don’t say often: on this point, I AGREE with @AOC Indeed, I have long called for a LIFETIME BAN on former Members of Congress becoming lobbyists. The Swamp would hate it, but perhaps a chance for some bipartisan cooperation? https://t.co/jPW0xkH2Yy — Ted Cruz (@tedcruz) May 30, 2019

Currently, lawmakers in the Senate have to wait two years after they leave office to engage in any lobbying; former House members have to wait one year.

Ocasio-Cortez and Cruz have previously butted heads on Twitter, arguing about the minimum wage and the price of croissants at the airport.

Previous efforts to prevent lobbying from former congresspeople have been put forth but not passed, including a 2017 bill co-sponsored by the Republican senator Cory Gardner and the Democratic senators Michael Bennet and Al Franken. Also in 2017, Senator Jon Tester of Montana introduced legislation that would ban lawmakers from lobbying their former colleagues until five years after leaving office, but it failed to gain traction.

The presidential candidate Elizabeth Warren has also called for legislation preventing former Congress members from lobbying.