The synaptonemal complex holds homologous chromosomes together, facilitating the process of crossing over.