Marion Barber III -- former Dallas Cowboys running back -- was arrested in Texas yesterday ... TMZ Sports has confirmed.

According to police records, Barber was arrested just after 8PM on Sunday night -- and he's being held for "mental detention and observation."

Police tell TMZ Sports Barber was taken into custody at his home.