Take a look at the beta version of dw.com. We're not done yet! Your opinion can help us make it better.
Colonial Pipeline supplies millions of barrels of fuel to the eastern and southern US each day.
The company is a major US supplier of gasoline, diesel, jet fuel and other refined products.
It transports around 45% of fuel supplies around the US east coast.
Colonial Pipeline said it learned of the attack on Friday, but provided no details of the type of hacking incident.
In response, the firm took systems offline to contain the threat, it said in the statement.
This temporarily halted operations and affected some of its IT systems, it said.
Colonial had shut its main gasoline and distillate lines on Friday, news agency Reuters reported.
The company brought in a cybersecurity firm and it has launched an investigation.
Colonial also contacted law enforcement and other federal agencies.
Colonial did not give further details or say for how long its pipelines would be shut.
At the end of 2020, a large-scale cyberattack, named "Sunburst," infiltrated parts of the US government, research institutions and private companies after staff downloaded a hacked SolarWinds software update.
The National Nuclear Security Administration (NNSA), part of the Department of Energy, confirmed that it had fallen victim to the attack. The NNSA is responsible for US nuclear weapons.
The Departments of Homeland Security, Commerce, State, and the Treasury also fell victim.
With material from Reuters