If you have been trying to understand something puzzling and then everything falls into place or clicks into place, you suddenly understand how different pieces of information are connected and everything becomes clearer.
When the reasons behind the decision were explained, of course, it all fell into place.
But it wasn't until I saw the photograph in the paper that everything clicked into place.