Ali was Mohammed’s cousin and also son-in-law

(married to Mohammed’s daughter Fatima).