Athena created an olive tree, a symbol of peace and prosperity, and the king was impressed with her gift, thus giving her the honor and naming the city after her. Poseidon wasn’t too pleased about this and cursed the city of Athens to never have enough water from that day forward.