1883 as the name of a game, from hard (adj.) + ball (n.1). The figurative sense of "tough, uncompromising behavior" is from 1973.
they play hardball in the Senate
harbour
hard
hard hat
hard-ass
hardback
hardball
hard-bitten
hard-boiled
hardcore
hard-cover
harden