Second Test, Jamaica, day four (close): Pakistan 374 & 309 v West Indies 404 & 114-6
Kaneria's haul included the prize scalp of Brian Lara
Pakistan were in sight of their first Test win in the West Indies since 1988 after reducing the home side to 114-6 on the fourth day in Jamaica.
Leg-spinner Danish Kaneria took 4-36 as the home side's top order collapsed in pursuit of a target of 280.
Brian Lara and Shivnarine Chanderpaul were both dismissed for ducks and only Devon Smith, with 49, offered prolonged resistance before he was caught behind.
Inzamam-ul-Haq earlier made 117 not out in Pakistan's total of 309 all out.
It was Inzamam's 22nd Test century and underlined his importance to a side which was beaten by 276 in the first Test in Barbados.
Pakistan resumed on 223-4 but their tail did not last long once Tino Best had ended a fifth wicket stand of 73 between Inzamam and Shahid Afridi by having Afridi caught by Smith for 43.
The five remaining wickets went down for just 36 runs in 13 overs, with fast bowler Best picking up three more to finish with 4-46.
Inzamam's century, which included 12 fours, arrived off 164 balls and he added two more boundaries before finally running out of partners when Kaneria gave a return catch to Corey Collymore (4-56).
It gave Collymore match figures of 11-134, the best performance of a career which has seen him make only 16 Test appearances since his debut against Australia in 1999.
West Indies made a positive start to their run chase with Chris Gayle collecting three boundaries before he was caught at slip by Yasir Hameed off Shabbir Ahmed for 15.
Inzamam's innings revived his side's victory hopes
His dismissal was followed soon after by the first of two interruptions for bad light and rain.
The introduction of Kaneria as first change proved a shrewd decision by Inzamam although there was an element of luck about his first wicket as Ramnaresh Sarwan trod on his stumps after going back to leg glance.
Sarwan departed for eight and replacement Lara only lasted five balls before he edged a leg-side catch to wicket-keeper Kamran Akmal.
Chanderpaul's innings was even shorter as he was adjudged lbw by umpire David Shepherd to a ball which kept low, only the third he had faced.
It was 94-5 when Smith was caught behind off Kaneria and seamer Abdul Razzaq then joined in by having Wavell Hinds caught in the slips by Younis Khan for 19.
Only three more overs were bowled with Courtney Browne (eight) and Daren Powell (four) preventing further damage.