Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
If I remember correctly the last macOS version that could run AppleWorks (via Rosetta) was Snow Leopard (macOS 10.6.x). The subesequent macOS was Lion.

At some point iWork came out but wasn't a note-for-note replacement.

Wikipedia has more info than anyone here would.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.