Square dancing is very old. It is almost exclusively done to a fiddle song. It is ALWAYS done with couples. It requires a "caller," someone who calls the parts of the dance.
Line dancing is newer, is done to either a live band or pre-recorded music, does not require a fiddle, does not require partners, and has no caller.