Tesla still isn't allowed to sell its electric cars in Michigan, owing to a ban on direct sales signed two years ago.

All carmakers in the state must sell new cars solely through franchised dealers, something Tesla has fought against with no success so far.

Yet while this ban continues, the state's Treasury Department is investing in Tesla Motors stock—and it even bought more shares recently.

DON'T MISS: Tesla wants to sell electric cars in Michigan; state couldn't care less

The Treasury Department of Michigan bought $48 million of Tesla stock for retirement funds in the second quarter, boosting its holdings 224 percent, reports The Detroit News.

By the end of June, the retirement funds included 339,623 shares of Tesla worth $72 million, according to U.S. Securities and Exchange Commission filings.

Tesla is one of many companies in which the Treasury Department's Bureau of Investment owns stock, but it may be the only one banned from doing business in the state.

Tesla Store opening in Westfield Mall, London, Oct 2013

Tesla Store opening in Westfield Mall, London, Oct 2013

With encouragement from state auto-dealer groups, legislators in 2014 quietly changed the language of a franchise law to prohibit automakers from selling cars directly to customers.

Tesla has applied for a Michigan dealer license, but the government has refused to take action on the carmaker's request.

The company isn't even allowed to offer test drives of its electric cars in Michigan.

ALSO SEE: Tesla Vs Michigan (UPDATED): Dealership Application, Conservative Coalition, Ballot Push

Mind you, Tesla isn't the only carmaker the Michigan Treasury Department invests in.

It also owns 1.36 million shares of Ford worth about $17 million, 486,800 shares of General Motors worth about $13.7 million, and 94,000 shares of supplier Delphi worth more than $84 million.

The Bureau of Investment oversees more than $60 billion in investments for the State of Michigan Retirement Systems.

Tesla Store opening in Westfield Mall, London, Oct 2013

Tesla Store opening in Westfield Mall, London, Oct 2013

It is divided into four systems: the Michigan Public School Employees' Retirement System, Michigan State Employees' Retirement System, Michigan State Police Retirement System, and Michigan Judges Retirement System.

Tesla stock now represents about 0.12 percent of the state's portfolio.

A Michigan Treasury spokesperson told The Detroit News that all investment decisions are made independent of state regulatory agencies.

MORE: FTC Calls Michigan's Tesla Ban 'Protectionism' For Dealers (May 2015)

Meanwhile, at a recent industry conference in Michigan, Diarmuid O'Connell, Tesla vice president of business development, said the carmaker isn't done fighting Michigan over direct sales.

He noted that there are already around 600 Tesla owners in Michigan, who bought their cars out of state and are required to take them to neighboring states for servicing.

General Motors CEO Mary Barra implicitly slammed Tesla over just that issue in January, while presenting the 2017 Chevrolet Bolt EV: "Unlike some EV customers, Bolt customers don't have to drive to another state to buy or service an EV."

_______________________________________________

Follow GreenCarReports on Facebook and Twitter