N-Methylation of amines with methanol proceeds at room temperature in the presence of a silver-loaded titanium dioxide (Ag/TiO2) photocatalyst under UV-vis light irradiation. This method allows facile synthesis/isolation of N-methylamines bearing various functional groups including N-benzyl, N-allyl, N-Boc, hydroxyl, ether, acetal, carboxamide, formamide, and olefin groups.