The main topic of the book "An Experiment with Time" by J.W. Dunne is the nature of time and the possibility of precognitive dreams. The author recounts personal experiences of dreaming about events before they happened and develops a theory that time is not linear but more like a landscape that we can explore, with dreams allowing us to glimpse future events.