Background: Charles Robert Darwin,  (; 12 February 1809 - 19 April 1882) was an English naturalist, geologist and biologist, best known for his contributions to the science of evolution. He established that all species of life have descended over time from common ancestors and, in a joint publication with Alfred Russel Wallace, introduced his scientific theory that this branching pattern of evolution resulted from a process that he called natural selection, in which the struggle for existence has a similar effect to the artificial selection involved in selective breeding. Darwin published his theory of evolution with compelling evidence in his 1859 book On the Origin of Species, overcoming scientific rejection of earlier concepts of transmutation of species. By the 1870s, the scientific community and a majority of the educated public had accepted evolution as a fact.
Context: Darwin's family tradition was nonconformist Unitarianism, while his father and grandfather were freethinkers, and his baptism and boarding school were Church of England. When going to Cambridge to become an Anglican clergyman, he did not doubt the literal truth of the Bible. He learned John Herschel's science which, like William Paley's natural theology, sought explanations in laws of nature rather than miracles and saw adaptation of species as evidence of design. On board HMS Beagle, Darwin was quite orthodox and would quote the Bible as an authority on morality. He looked for "centres of creation" to explain distribution, and related the antlion found near kangaroos to distinct "periods of Creation".  By his return, he was critical of the Bible as history, and wondered why all religions should not be equally valid. In the next few years, while intensively speculating on geology and the transmutation of species, he gave much thought to religion and openly discussed this with his wife Emma, whose beliefs also came from intensive study and questioning. The theodicy of Paley and Thomas Malthus vindicated evils such as starvation as a result of a benevolent creator's laws, which had an overall good effect. To Darwin, natural selection produced the good of adaptation but removed the need for design, and he could not see the work of an omnipotent deity in all the pain and suffering, such as the ichneumon wasp paralysing caterpillars as live food for its eggs. He still viewed organisms as perfectly adapted, and On the Origin of Species reflects theological views. Though he thought of religion as a tribal survival strategy, Darwin was reluctant to give up the idea of God as an ultimate lawgiver. He was increasingly troubled by the problem of evil.  Darwin remained close friends with the vicar of Downe, John Brodie Innes, and continued to play a leading part in the parish work of the church, but from around 1849 would go for a walk on Sundays while his family attended church. He considered it "absurd to doubt that a man might be an ardent theist and an evolutionist" and, though reticent about his religious views, in 1879 he wrote that "I have never been an atheist in the sense of denying the existence of a God. - I think that generally ... an agnostic would be the most correct description of my state of mind".  The "Lady Hope Story", published in 1915, claimed that Darwin had reverted to Christianity on his sickbed. The claims were repudiated by Darwin's children and have been dismissed as false by historians.
Question: what did he do, due to these beliefs?. Whats the answer?
he gave much thought to religion and openly discussed this with his wife Emma,