# What causes structure formation: Baryon acoustic oscillations or inflation?

Formation of structures such as galaxies and galaxy clusters require anisotropies in the cosmic plasma which (as I understand) were due to the anisotropies or density inhomogeneities created by Baryon Acoustic Oscillations (BAO). Here is a very nice short video. However, I also hear that inflation played a role in structure formation.

How are these two factors related?