Iraqi forces regained full control Thursday of the country's biggest oil refinery after heavy fighting with Sunni militants attempting to seize it, officials said.