It's a continuum. Over the first month or two, 2 parts of nitrogen cycle are established -converting ammonia to nitrite, and nitrite to nitrate. It can take many months (depending on a lot of factors) to establish denitrifying which is converting nitrate to nitrogen gas. A fourth part of the nitrogen cycle is nitrogen fixing, which is more complicated than I can explain here.
Then there is the "algae cycle". Most tanks started with most or all dry rock will go through various stages of different nuisance algaes over the next 6-12 months. Diatoms, green algae, dinos, and cyano can be seen during this time. The appearance of diatoms during the cycling phase of a tank is absolutely normal, and you need not take any countermeasures. As a rule, the diatoms are crowded out by green algae a few weeks later, which is crowded out by other algaes, and so on.
During this first year or so, other bacteria and archaea also become established in the system and help form what we usually think of as a "mature" tank.