What does am mean in German?

On the, or by the. Frankfurt am Main translates as Frankfurt (a town) on the (river) Main.