by marriage

From Longman Dictionary of Contemporary Englishby marriageby marriageSSFFAMILYif you are related to someone by marriage, they are married to someone in your family, or you are married to someone in theirs  her cousin by marriage marriageExamples from the Corpusby marriageJohn's my cousin by marriage.