Two Ku Klux Klan leaders, including a California man who organized a violent “White Lives Matter” rally in Anaheim earlier this year, were arrested in North Carolina over the weekend in connection with a stabbing before a Klan parade celebrating the election of Donald J. Trump.

The Orange, Calif. man, William Hagen, 50, is the grand dragon of the Loyal White Knights of the Ku Klux Klan, a racist group active in the western United States. He and another Klan leader, Chris Barker, 37, were accused of stabbing a third Klan member, the Caswell County sheriff’s office said in a statement late Tuesday. The two men appeared in court on Wednesday.

The victim, Richard Dillon, 47, had stumbled into the lobby of the sheriff’s office at 3:15 a.m. Saturday with several stab wounds to the chest, after a fight at a Klan meeting in Mr. Barker’s home in East Yanceyville, N.C., according to Captain Frank Rose, a sheriff’s office spokesman. Mr. Dillon was treated at a local medical center and released.

The attack took place hours before a Ku Klux Klan parade on Saturday in Roxboro, N.C., billed as a celebration of Mr. Trump’s victory. The president-elect has said he disavows the support of the Klan, neo-Nazis and other white supremacists.