delivered the opinion of the Court.
This is another in the long line of cases, beginning with
McCulloch
v.
Maryland,
I
The United States has established three Naval Petroleum Reserves in California and Wyoming, one of which is Naval Petroleum Reserve No. 1, located in Kern County, California. 10 U. S. C. § 7420. First through the Department of the Navy and later through the Department of Energy, the United States contracted with Williams Brothers Engineering Company (WBEC) to manage oil drilling operations at Reserve No. 1 from 1975 to 1985. Under the contract, WBEC received an annual fixed fee plus reimbursement for costs, which the contract defined to include state sales and use taxes.
California assessed approximately $14 million in sales and use taxes, pursuant to Cal. Rev.
&
Tax. Code Ann. §6384 (West 1987), against WBEC for the years 1975 through 1981.
In May 1988, the United States filed suit in the Eastern District of California, seeking a declaratory judgment that California had classified and taxed WBEC erroneously under California law and that the taxed property actually was exempt. It sought a refund of the $11 million plus interest. In the course of the suit, the United States argued it was entitled to recovery based on the federal common-law cause of action for money had and received. The District Court rejected both grounds for recovery and granted summary judgment for the State.
The Court of Appeals for the Ninth Circuit affirmed.
The Court of Appeals acknowledged that the Court of Appeals for the Eleventh Circuit, in a factually similar case, recently had reached the opposite conclusion.
Id.,
at 1351-1352. In
United States
v.
Broward County,
I HH
The Government concedes that it could have intervened in WBEC’s administrative and state-court proceedings. Tr. of Oral Arg. 17. But it argues that whether it complied with state procedural requirements or whether it could have intervened is irrelevant, because it has a federal right to recover the taxes under the federal common-law cause of action for money had and received (also known as
indebitatus
assumpsit). Prior to the creation of federal administrative and statutory remedies for the recovery of federal taxes, this Court held that a taxpayer could bring an action for money had and received to recover erroneously or illegally assessed taxes. In
City of Philadelphia
v.
The Collector,
“[The] [appropriate remedy to recover back money paid [to federal tax collectors] under protest on account of duties or taxes erroneously or illegally assessed, is an action of assumpsit for money had and received. Where the party voluntarily pays the money, he is without remedy; but if he pays it by compulsion of law, or under protest, or with notice that he intends to bring suit to test the validity of the claim, he may recover it back, if the assessment was erroneous or illegal, in an action of assumpsit for money had and received.” Id., at 731-732 (citing Elliott v. Swartwout,10 Pet. 137 , 150 (1836)).
The Government reasons that it paid WBEC’s taxes, that the taxes were wrongfully assessed, and that therefore it may recover the funds used to pay those taxes. Since an action for money had and received is based on a contract implied in law, see
Bayne
v.
United States,
The management contract between the Government and WBEC is in all relevant respects identical to the contracts we discussed in
United States
v.
New Mexico,
In
New Mexico,
the Government brought an action arguing that the contractors’ expenditures, other than those made out of the fixed fees, were constitutionally immune from taxation. We noted that the doctrine of federal immunity from state taxation is “one that has been marked from the beginning by inconsistent decisions and excessively delicate distinctions.”
It is beyond peradventure that California did not tax— indeed, could not have taxed — the Federal Government in this case. California taxed WBEC. And the Government’s voluntary agreement to reimburse (or even fund in advance) WBEC for those taxes does not make the Government’s payments direct disbursements of federal funds to the State. We addressed an analogous indemnification relationship in
Brady
v.
Roosevelt S. S. Co.,
We conclude from
Brady
and
New Mexico
that the Government cannot use the existence of an obligation to indemnify WBEC to create a federal causé of action for
money
had and received to recover state taxes paid by WBEC any more than the Roosevelt Steamship Company could use the existence of a right to indemnity from the Government to defeat a claim for recovery. See
Brady, supra,
at 584. Cf.
Farid
v.
Smith,
Although the Government does not cite
Brady,
it does cite two other cases that suggest the lesson of
Brady
might not apply in an action for money had and received. According to the Government,
Bayne
v.
United States,
Bayne
and
Gaines
share two features this case lacks. The first is that, in each, the rightful owner of the money lost it by way of theft. That is, the money passed from the first party to the second party unlawfully. See
Bayne, supra,
at 643;
Gaines, supra,
at 396. The second feature is that in both cases the rightful owner of the money sued a third party who had a relationship that, at least for our purposes, made that party legally responsible for the actions of the one who unlawfully took the money. The Court was satisfied in
Bayne
that the transactions between the paymaster, the banks, and Bayne & Co. were “the result of a fraudulent purpose to secure the use of the public money to Bayne & Co., who received it with full knowledge that it belonged to the United States, and had been applied in manifest violation of the act of Congress.”
Although the Government cannot proceed in an action for money had and received, our discussion of indemnification suggests the Government may not be without recourse: Because it indemnified the contractor, the Government has a right to be subrogated to the contractor’s claims against the State. See 10 W. Jaeger, Williston on Contracts § 1265 (3d ed. 1967); Brief for Respondents 13 (conceding the same). When proceeding by subrogation, the subrogee “stands in the place of one whose claim he has paid.”
United States
v.
Munsey Trust Co.,
The traditional rules of subrogation, however, do not necessarily apply to the Government. But cf.
United States
v.
Standard Oil Co. of Cal,
“When the United States becomes entitled to a claim, acting in its governmental capacity, and asserts its claim in that right, it cannot be deemed to have abdicated its governmental authority so as to become subject to a state statute putting a time limit upon enforcement.” Summerlin, supra, at 417.
In contrast, the Government here became entitled to its claim by indemnifying a private contractor's state-law debt. It can assert its claim only by way of subrogation, an equita
Whether in general a state-law action brought by the United States is subject to a federal or state statute of limitations is a difficult question. We need not resolve it today, however, because
Guaranty Trust Co.
v.
United States,
Here, although the Government acquired a right to subro-gation to WBEC’s claims upon payment of the taxes, the Government did not assert that right until it filed the federal judicial proceeding. As the California Supreme Court has held: “ ‘[A] surety by payment does not become
ipso facto
subrogated to the rights of the creditor, but only acquires a right to such subrogation, and . . . before the substitution or equitable assignment can actually take place he must actively assert his equitable right thereto. It is not a substantive tangible right of such nature and character that it can be seized and held and enjoyed independently of a judicial proceeding.’”
Offer
v.
Superior Court of San Francisco,
The Government argues that affirming the Court of Appeals often will leave it “without an effective remedy to contest a tax improperly exacted from a federal contractor” and subject it to the “vagaries” of 50 state tax-law procedures. Brief for United States 26-27. But federal contractors already are subject to the substantive tax laws of the 50 States. Nothing in our decision prevents the Government from including in its contracts a requirement that its contractors be responsible for all taxes the Government believes are wrongfully assessed, a contract term that likely would remove any disinterest a contractor may have toward litigating in state court. If our decision today results in an intolerable drain on the public fisc, Congress, which can take into account 'the concerns of the States as well as the Federal Government, is free to address the situation. See
New Mexico,
III
In
United States
v.
New Mexico,
we held that the Federal Government is immune only from state taxes imposed on it directly.
Id.,
at 734. In so holding, we hoped to “forestall, at least to a degree, some of the manipulation and wooden formalism that occasionally have marked tax litigation — and that have no proper place in determining the allocation of power between coexisting sovereignties.”
Id.,
at 737. Today we hold that shouldering the “entire economic burden of the levy,”
id.,
at 734, through indemnification does not give the Federal Government a federal common-law cause of action for money had and received to challenge a state tax on
The judgment of the Court of Appeals is
Affirmed.
