Dirac softened his views on the existence of God in his later years, and was open to the idea that a higher power could be responsible for the universe. In 1963 he said:
"It seems to be one of the fundamental features of nature that fundamental physical laws are described in terms of a mathematical theory of great beauty and power, needing quite a high standard of mathematics for one to understand it. You may wonder: Why is nature constructed along these lines? One can only answer that our present knowledge seems to show that nature is so constructed. We simply have to accept it. One could perhaps describe the situation by saying that God is a mathematician of a very high order, and He used very advanced mathematics in constructing the universe."
One can be a cynic about the purposes of religion for society's control, but the claim "God exists" is not falsifiable and therefore sits outside the realm of scientific enquiry.
Therefore it is intriguing that the idea that nature might have been "constructed" appealed to Dirac at one point.