The Riyadh refinery was targeted on Friday morning by a terrorist attack using drones.
An official source at the Foreign Ministry said operations at the Saudi Aramco facility were unaffected.
The attack took place at 6:05 am and caused a fire that has been contained.
No one was killed or injured in the attack.
The source said Saudi Arabia strongly condemns the cowardly attack, saying terrorist and sabotage acts, which have repeatedly been targeting vital installations and civilian locations, are not aimed against the Kingdom alone, but the global economy and energy supplies.
It called on the world and international organizations to take a stand against such terrorist attacks and to confront all sides that perpetuate and support them.