After the age of 2 years, a child is ready to sleep on his or her own. You could use the transition method where you first shift him or her into a separate bed in your room and then the other room. You could also go cold turkey and introduce him or her to the new room. Sleep with the child initially and reduce the time gradually.