Gaia Theory Development - James Lovelock

How did the theory come about? Why was Lovelock ostracised by his peers?