The study of CP violation is critical for understanding the asymmetry between matter and antimatter in the universe. This seminar presents the CP violation in Bs to J/psi Phi and D0 to KsKs decays measured with the CMS detector at the LHC using Run 2 data.