When people hit it off, they quickly become friends because they like each other.
At the party, John and Mike hit it off right away and spent the whole evening talking.