She confronted Poseidon for sovereignty over the Attic peninsula. While Poseidon offered the Athenians a source of salt water (according to another version, a steed), Athena created the olive tree, unknown there, and taught the first king Cecrops I how to care for the trees and press oil.
Her gift appealed to the Athenians more than what the sea god offered.