# Where does require look for modules?

**URL:** <https://forum.elixirforum.com/t/where-does-require-look-for-modules/15873>\
**Category:** Questions\
**Tags:** language-implementation\
**Created:** [August 16, 2018, 3:50am UTC](https://forum.elixirforum.com/t/where-does-require-look-for-modules/15873 "2018-08-16T03:50:41Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![gregvaughn](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/gregvaughn/32/954_2.png) [@gregvaughn](https://forum.elixirforum.com/u/gregvaughn)\
**Post date:** [August 16, 2018, 5:20pm UTC](https://forum.elixirforum.com/t/where-does-require-look-for-modules/15873/8 "2018-08-16T17:20:08Z")

</div>

> [@7stud](#):
>
> Okay, that worked…but it also worked without the require statement, so I guess I don’t understand what require does yet:
> 
> > As for the code you’ve written, you don’t need a `require` statement at all. Requires are for loading macros before they’re used, which your function is not (its just a plain function). You can remove the `require MyMath` and everything will still work fine.

`require` in Elixir is not like `require` in your prior language. That quote you included from @mgwidmann explains it well. `require` is about macros, and you’re not using macros.

Edit to add:  
The getting started guide is a good place to … well .. get started. It covers `require` in more depth here: [https://elixir-lang.org/getting-started/alias-require-and-import.html#require](https://elixir-lang.org/getting-started/alias-require-and-import.html#require)

---

_[View the full topic](https://forum.elixirforum.com/t/where-does-require-look-for-modules/15873)._
