Human error is to blame for Wednesday night's ferry crash.

Twenty-six people were stranded in Jamaica Bay for hours after their Manhattan-bound boat hit a sandbar in shallow waters.

This is the second time a New York City ferry has run aground in recent months.

Mayor Bill de Blasio says both accidents could have been avoided.

"I'm not happy about these two instances one bit," the mayor said. "It's not an acceptable situation in the sense that it was totally avoidable. This much we can say for sure. It shouldn't have happened, not satisfying to me or acceptable at all and we're going to take action."

In both cases, the ferry pilots have been pulled off the job for evaluation.