[noun] + によって [noun] + による + [noun] [noun] + により
[verb plain] + こと + によって [verb plain] + こと + による + [noun] [verb plain] + こと + により
The expressions によって and による are grammar patterns built from the particle に and the verb よる. They serve several distinct functions depending on context. によって is used mid-sentence to connect clauses, while による is the attributive form that directly modifies a following noun. A more formal written variant により also exists.
Indicates how something is accomplished or the tool/method used.
Indicates the cause of an event, often used with natural disasters, accidents, or significant events.
Used to mark the agent (the doer) in passive constructions, similar to English "by."
Expresses that something changes or differs based on a condition. Often appears as によっては to mean "in some cases, depending on."