saha devais taya saha
brahma—Lord Brahma; tat-upadharya—understanding everything rightly; atha—thereafter; saha—with; devaih—the demigods; taya saha—with mother earth; jagama—approached; sa-tri-nayanah—with Lord Siva, who has three eyes; tiram—the shore; ksira-payah-nidheh—of the ocean of milk.
Thereafter, having heard of the distress of mother earth, Lord Brahma, with mother earth, Lord Siva and all the other demigods, approached the shore of the ocean of milk.
After Lord Brahma understood the precarious condition of the earth, he first visited the demigods headed by Lord Indra, who are in charge of the various affairs of this universe, and Lord Siva, who is responsible for annihilation. Both maintenance and annihilation go on perpetually, under the order of the Supreme Personality of Godhead. As stated in Bhagavad-gita (4.8), paritranaya sadhunam vinasaya ca duskrtam. Those who are obedient to the laws of God are protected by different servants and demigods, whereas those who are undesirable are vanquished by Lord Siva. Lord Brahma first met all the demigods, including Lord Siva. Then, along with mother earth, they went to the shore of the ocean of milk, where Lord Visnu lies on a white island, Svetadvipa.
Link to this page: https://prabhupadabooks.com/sb/10/1/19