In this thesis, we consider various (electro)chemical phenomena at surfaces and nanoparticles and their underlying atomistic processes, which we studied using first-principles methods such as density functional theory.