according to myth , he and his brothers zeus and poseidon defeated the titans and claimed ruler ship over the cosmos , ruling the underworld , air , and sea , respectively ; the solid earth , long the province of gaia , was available to all three concurrently .