West Indies 311 (Da Silva 79, Hodge 71, Starc 4-82) and 193 (McKenzie 41, Hazlewood 3-23) beat Australia 289 for 9 dec (Khawaja 75, Carey 65, Cummins 64*, Alzarri 4-84) and 207 (Smith 91*, Shamar 7-68) by eight runs
Brisbane: Shamar Joseph took seven wickets as West Indies won a Test in Australia for the first time since 1997.
The tourists held their nerve in a thrilling finish to win by eight runs, and ensure a drawn two-match series.
Fast bowler Joseph, who hobbled off in tears 24 hours earlier after being injured while batting, finished with 7-68 in Brisbane.
Steve Smith (91*) carried his bat for Australia, who lost their first day-night Test match.
Joseph, who quit his job as a security guard just 18 months ago, found plenty of pace at the Gabba to rip through the Australian batting order.
He needed treatment before play - at one stage he considered not even travelling to the ground for day four - but recovered to bowl almost 12 match-winning overs.
Australia had cruised to 113-2 when Joseph bowled Cameron Green (42) and Travis Head in consecutive deliveries.
Despite Smith standing firm, Joseph worked his way through the Australian batting card before completing his side's first Test victory against Australia anywhere in the world since 2003 when he cleaned up Josh Hazlewood.
The two teams will play three one-day internationals and three T20s next.