What does the main relay do ?
when I put the key in the ignition, and go to start, all warning lights come on and then I hear a click and lose all power, just like a dead battery, then I disconnect the battery and reconnect all power come back, until I again try to start the car, then when I again turn the key in the key in the ignition, and go to start, all warning lights come on and then I hear a click and lose all power, just like a dead battery, then I disconnect the battery and reconnect all power come back, then repeat, until car finally starts & runs normally.