Complex sentence: Wilkes acquired a reputation for sometimes acting arrogant and capriciously, perhaps partly because if his open conflict with Gideon Welles, who was the Secretary of the Navy.
Split into simpler sentences: Wilkes acquired a reputation for sometimes acting arrogant and capriciously. This may have been partly due to his open conflict with Gideon Welles, who was the Secretary of the Navy.