In this talk, we will start with a historical review of the domain decomposition methods, analyze some classical methods in a simple setting. Then we will discuss their applications to solve PDE-constrained optimization problems. We will compare the difference between decomposing in space with decomposing in time, and then discuss some properties of time domain decomposition methods.