MSYS2 is a software distribution and building platform for Windows. RubyInstaller uses MSYS2 to provide a development toolkit and build tools necessary for compiling native Ruby gems.