The main risk factor for developing OCD (obsessive compulsive disorder) is having a first degree relative (parents or siblings) with OCD.
To see how OCD develops, please watch the following video: