In California, all custody determinations are made based upon the best interests of the child. There is a list of factors that play into custody matters (both within and outside of the context of divorce). While there is no way to guarantee that you will get custody, there are steps you may be able to take in order to improve your chances of securing the custody rights you desire.