Microlensing relies on the chance alignment of two stars with an observer. As one star crosses behind the other, the closer star acts like a lens, bending the light so that the brightness smoothly increases and decreases. If a planet is present around the closer star, its gravity will also bend the light stream, causing a spike.