Wires

UPDATE 2-Marathon Petroleum to buy BP Texas City refinery

* Marathon to purchase refinery for $598 million

* Inventory worth around $1.2 billion

* Marathon could pay up to another $700 mln over six years

(Adds background)

Oct 8 (Reuters) - Marathon Petroleum Corp struck adeal to buy BP's Texas City refinery and relatedinfrastructure for up to $2.5 billion, a purchase that wouldmake Marathon the fourth-largest refiner in the United States.

Marathon said on Monday it agreed to buy the 451,000 barrel-per-day refinery, one of the largest in the country, as well asthe plant's inventory, three intrastate natural gas pipelinesand other assets.

The Texas City refinery was the site of a 2005 explosionthat killed 15 workers, injured 180 others and resulted in a $13million fine for BP to settle safety violations at the plant.

London-based BP has been selling off assets as it focusesmore on northern U.S. refineries with better access to cheapCanadian oil supply. It is also raising cash to help pay damagesfor the worst offshore oil spill in U.S. history.

Marathon Petroleum's shares rose nearly 9 percent to $59.62in early trading on the New York Stock Exchange.

The U.S. company said it will also acquire an allocation ofBP's Colonial Pipeline Co shipper history, four terminals,retail marketing contract assignments for approximately 1,200branded sites, and a 1,040 megawatt cogeneration facility.

The base purchase price is $598 million, plus inventoriesestimated at $1.2 billion, Marathon Petroleum said.

The agreement also contains a provision under which MarathonPetroleum could pay BP up to $700 million more over six years.

The transaction, which is expected to boost earnings in thefirst year of operation, is expected to be funded with cash onhand and is anticipated to close early in 2013, Marathon said.

(Reporting by Steve James and Michael Erman; Editing by LeslieAdler and Maureen Bavdek)

((steve.james@thomsonreuters.com)(1-646-223-6013)(Reuters

Messaging: steve.james@thomsonreuters.com))

Keywords: MARATHON/BP