A man has been detained after he was involved in a 36-hour standoff with police on a Castleford canal.
Armed police have been at Lock Lane since Thursday morning after the man threatened to blow his boat up.
The area was evacuated and roads were closed causing misery for motorists in the town.
Castleford police incident 'ongoing' as Lock Lane remains closed
But police have confirmed the man has now been detained.
Motorists advised to avoid parts of Castleford due to police incident AND flooding
And they are now hoping that traffic in the area will soon be back to normal.