In this article the author first described the developments which brought to focus the importance of consistency proofs for mathematics, and which led Hilbert to promote the science of metamathematics. Further comments and remarks concern the (partly analogous) beginnings of the work on the decision problem, Godel's theorems and related matters, and general metamathematics. An appendix summarizes a text by the author on completeness and categoricity.