Complex sentence: The males then attract females to the nest who lay their eggs inside where the male can fertilise them.
Split into simpler sentences: The males then attract females to the nest. The female will lay their eggs inside the nest where the male can fertilise them.