OTTAWA — Uber said on Tuesday that it would stop service in Montreal and the Quebec province next month rather than accept new government rules, the second setback in a week for the ride-hailing service’s international operations.

On Friday, the taxi regulator in London announced that it would not renew Uber’s license, saying that the ride-hailing business had demonstrated a “lack of corporate responsibility.”

Until recently, Uber appeared to have reveled in ignoring local regulations as it shoved its way into markets. But its aggressive ways, combined with a series of scandals, may be catching up with it. Last month, Dara Khosrowshahi was brought in as chief executive to replace Uber’s co-founder, Travis Kalanick, who had been forced to step down.

Quebec’s decision to dictate terms to Uber is another sign that governments and regulators are less willing to back down when faced by intimidation from the company.